import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "Home",
      component: () => import("@/views/Home.vue"),
    },
    {
      path: "/About",
      name: "About",
      component: () => import("@/views/About.vue"),
    },
    {
      path: "/Business",
      name: "Business",
      component: () => import("@/views/Business.vue"),
    },
    {
      path: "/Example",
      name: "Example",
      component: () => import("@/views/Example.vue"),
    },
    {
      path: "/Exampleitem",
      name: "Exampleitem",
      component: () => import("@/views/Exampleitem.vue"),
    },
    {
      path: "/Exampleitem2",
      name: "Exampleitem2",
      component: () => import("@/views/Exampleitem2.vue"),
    },
    {
      path: "/Exampleitem3",
      name: "Exampleitem3",
      component: () => import("@/views/Exampleitem3.vue"),
    },
    {
      path: "/Exampleitem4",
      name: "Exampleitem4",
      component: () => import("@/views/Exampleitem4.vue"),
    },
    {
      path: "/Exampleitem5",
      name: "Exampleitem5",
      component: () => import("@/views/Exampleitem5.vue"),
    },
    {
      path: "/Exampleitem6",
      name: "Exampleitem6",
      component: () => import("@/views/Exampleitem6.vue"),
    },

    // 移动端
    {
      path: "/mobile_home",
      name: "mobile_home",
      component: () => import("@/views/mobile/mobile_home.vue"),
    },
    {
      path: "/mobile_about",
      name: "mobile_about",
      component: () => import("@/views/mobile/mobile_about.vue"),
    },
    {
      path: "/mobile_business",
      name: "mobile_business",
      component: () => import("@/views/mobile/mobile_business.vue"),
    },
    {
      path: "/mobile_example",
      name: "mobile_example",
      component: () => import("@/views/mobile/mobile_example.vue"),
    },
  ],
});

export default router;
